package com.jt.demo8_anno;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class TestUser1 {
    @Autowired
    @Qualifier("pig1")
    private Pet pet;
    public void hello(){
        pet.hello();
    }
}
